package chapter08;

/**
 * Created by V5470-I5 on 2016/3/31.
 */
public class StackTranceDemo2 {
    public  static  void main(String[] args){
        try{
            c();
        }
        catch (NullPointerException ex){
            ex.printStackTrace();
        }
    }
    static void c(){
       try {
           b();
       }
       catch (NullPointerException ex){
           ex.printStackTrace();
           throw ex;
    }}
    static void b(){
        a();
    }
    static String a(){
        String text=null;
        return text.toUpperCase();
    }
}


